<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<html>
<head>
<title>修改用户</title>
<script src="${contextPath}/scripts/jquery/jquery-1.8.3.min.js"
	type="text/javascript"></script>
<script src="${contextPath}/scripts/common.js" type="text/javascript"></script>
<script src="${contextPath}/scripts/My97DatePicker/WdatePicker.js"
	type="text/javascript"></script>
<link href="${contextPath}/styles/default.css" rel="stylesheet"
	type="text/css" />
<script src="${contextPath}/scripts/scriptvalidator.js" type="text/javascript"></script>
<script>
	function check(){
		var form1 = document.getElementById("form1");
		if(Validator.Validate(form1,3)){
			var pwd1 = document.getElementById("pwd1").value;
			var pwd2 = document.getElementById("pwd2").value;
			if(pwd1==pwd2){
				document.getElementById("pwd2").focus();
				return true;
			}else{
				alert("两次密码不一致，请重新输入！");
			}
		}
		return false;
	}
	
</script>
</head>
<body leftmargin='8px' topmargin='8px'>
	<div class="navigation">
		<span><a href="javascript:window.history.back();"><img src="${contextPath}/images/back_nav_btn.png" /></a>
		 <a href="javascript:window.history.back();">返回</a>
		  <a href="javascript:window.history.forward();"><img src="${contextPath}/images/go_nav_btn.png" /></a>
			 <a href="javascript:window.history.forward();">前进</a> 
			 <a href="javascript:window.location.reload();"><img src="${contextPath}/images/refresh_nav_btn.png" /></a>
			 <a
			href="javascript:window.location.reload();">刷新</a> </span>系统管理&gt;&gt;修改密码
		
	</div>
<div class="xt_main_right_center">
	<form name="form1" action="updatePassword.do" method="post" onsubmit="return check()">
					<input type="hidden" name="redirectUrl" value="<s:property value='redirectUrl'/>" />
					<input type="hidden" name="userInfo.id" value="${user.id }" />
						<table width="100%">
							<tr>
								<td class="right-td-width-bg"><font color="red" size="2">* </font>新密码：</td>
								<td><input class="input" type="password" name="userInfo.password" id="pwd1" maxlength="20" msg="密码不能为空" dataType="Require"/></td>
							</tr>
							<tr>
								<td class="right-td-width-bg"><font color="red" size="2">* </font>确认新密码：</td>
								<td><input class="input" type="password" id="pwd2" maxlength="20" msg="确认密码不能为空" dataType="Require"/></td>
							</tr>
							<tr>
								<td colspan="2" align="center">
								<input type="submit" class="btn_submit" value="" />
								 <input type="reset" class="btn_return" value="" onclick="location.href='indexBody.do';"/>
								 </td>
							</tr>
						</table>
					</form>
				</div>
</body>
</html>